package com.ssm.dao;

import com.ssm.Entity.Folder;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface FolderDAOImpl {

    @Insert("insert into folderr (folderName, userId, folderSize) values (#{folderName}, #{userId}, #{folderSize})")
    int createFolder(Folder folder);

    @Select("select * from folderr where userId = #{userId}")
    Folder findFolderById(int userId);
}
